Optimal. Leaf size=56 \[ \frac {381 x}{125}-\frac {16 x^2}{25}+\frac {4 x^3}{15}+\frac {8349 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{625 \sqrt {31}}-\frac {1573 \log \left (2+3 x+5 x^2\right )}{1250} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1671, 648, 632,
210, 642} \begin {gather*} \frac {8349 \text {ArcTan}\left (\frac {10 x+3}{\sqrt {31}}\right )}{625 \sqrt {31}}+\frac {4 x^3}{15}-\frac {16 x^2}{25}-\frac {1573 \log \left (5 x^2+3 x+2\right )}{1250}+\frac {381 x}{125} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 632
Rule 642
Rule 648
Rule 1671
Rubi steps
\begin {align*} \int \frac {\left (3-x+2 x^2\right )^2}{2+3 x+5 x^2} \, dx &=\int \left (\frac {381}{125}-\frac {32 x}{25}+\frac {4 x^2}{5}+\frac {121 (3-13 x)}{125 \left (2+3 x+5 x^2\right )}\right ) \, dx\\ &=\frac {381 x}{125}-\frac {16 x^2}{25}+\frac {4 x^3}{15}+\frac {121}{125} \int \frac {3-13 x}{2+3 x+5 x^2} \, dx\\ &=\frac {381 x}{125}-\frac {16 x^2}{25}+\frac {4 x^3}{15}-\frac {1573 \int \frac {3+10 x}{2+3 x+5 x^2} \, dx}{1250}+\frac {8349 \int \frac {1}{2+3 x+5 x^2} \, dx}{1250}\\ &=\frac {381 x}{125}-\frac {16 x^2}{25}+\frac {4 x^3}{15}-\frac {1573 \log \left (2+3 x+5 x^2\right )}{1250}-\frac {8349}{625} \text {Subst}\left (\int \frac {1}{-31-x^2} \, dx,x,3+10 x\right )\\ &=\frac {381 x}{125}-\frac {16 x^2}{25}+\frac {4 x^3}{15}+\frac {8349 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{625 \sqrt {31}}-\frac {1573 \log \left (2+3 x+5 x^2\right )}{1250}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 53, normalized size = 0.95 \begin {gather*} \frac {8349 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{625 \sqrt {31}}+\frac {10 x \left (1143-240 x+100 x^2\right )-4719 \log \left (2+3 x+5 x^2\right )}{3750} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.12, size = 44, normalized size = 0.79
method | result | size |
default | \(\frac {381 x}{125}-\frac {16 x^{2}}{25}+\frac {4 x^{3}}{15}-\frac {1573 \ln \left (5 x^{2}+3 x +2\right )}{1250}+\frac {8349 \arctan \left (\frac {\left (3+10 x \right ) \sqrt {31}}{31}\right ) \sqrt {31}}{19375}\) | \(44\) |
risch | \(\frac {4 x^{3}}{15}-\frac {16 x^{2}}{25}+\frac {381 x}{125}-\frac {1573 \ln \left (100 x^{2}+60 x +40\right )}{1250}+\frac {8349 \arctan \left (\frac {\left (3+10 x \right ) \sqrt {31}}{31}\right ) \sqrt {31}}{19375}\) | \(44\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 43, normalized size = 0.77 \begin {gather*} \frac {4}{15} \, x^{3} - \frac {16}{25} \, x^{2} + \frac {8349}{19375} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {381}{125} \, x - \frac {1573}{1250} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.38, size = 43, normalized size = 0.77 \begin {gather*} \frac {4}{15} \, x^{3} - \frac {16}{25} \, x^{2} + \frac {8349}{19375} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {381}{125} \, x - \frac {1573}{1250} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 63, normalized size = 1.12 \begin {gather*} \frac {4 x^{3}}{15} - \frac {16 x^{2}}{25} + \frac {381 x}{125} - \frac {1573 \log {\left (x^{2} + \frac {3 x}{5} + \frac {2}{5} \right )}}{1250} + \frac {8349 \sqrt {31} \operatorname {atan}{\left (\frac {10 \sqrt {31} x}{31} + \frac {3 \sqrt {31}}{31} \right )}}{19375} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.87, size = 43, normalized size = 0.77 \begin {gather*} \frac {4}{15} \, x^{3} - \frac {16}{25} \, x^{2} + \frac {8349}{19375} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {381}{125} \, x - \frac {1573}{1250} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.45, size = 45, normalized size = 0.80 \begin {gather*} \frac {381\,x}{125}-\frac {1573\,\ln \left (5\,x^2+3\,x+2\right )}{1250}+\frac {8349\,\sqrt {31}\,\mathrm {atan}\left (\frac {10\,\sqrt {31}\,x}{31}+\frac {3\,\sqrt {31}}{31}\right )}{19375}-\frac {16\,x^2}{25}+\frac {4\,x^3}{15} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________